how to caluclate value of sales from mark-up and cost of sales